﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_shoucang : LoginBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        base.PageSize = 6;
        BindData();
    }

    public void BindData()
    {
        BLL.V_FavoritesImg bll = new BLL.V_FavoritesImg();
        string sql = string.Format(" userid={0} ", base.User.ID);
        Model.PageData<Model.V_FavoritesImg> data = bll.GetList(base.PageSize, base.PageIndex, "", " addtime desc ");
        Repeater1.DataSource = data.DataSoure;
        Repeater1.DataBind();
        pgServer.RecordCount = data.Count;
        //pgServer.EnableUrlRewriting = true;
        //string url = string.Format("list-{0}-{1}-{2}.html", base.TypeID, base.ColorID, base.Language);
        //pgServer.UrlRewritePattern = url + "?page={0}";
        pgServer.DataBind();
    }
}